package org.jjj.org.basic.utils;

/**
 * 封装
 * 当增删改查时向前端返回的提示信息
 * 成功与否，提示信息
 */
public class ResultAjax {
    private Boolean success = true;
    private String message ="操作成功";
    private Object result;//向前端返回个对象
    //创建对象的方法
    public static ResultAjax me(){
        return new ResultAjax();
    }

    public Boolean getSuccess() {
        return success;
    }

    public ResultAjax setSuccess(Boolean success) {
        this.success = success;
        return this;
    }

    public String getMessage() {
        return message;
    }

    public ResultAjax setMessage(String message) {
        this.message = message;
        return this;
    }

    public Object getResult() {
        return result;
    }

    public ResultAjax setResult(Object result) {
        this.result = result;
        return this;
    }
}
